<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

	<h:head>
		<h:outputStylesheet name="estilos.css" library="css"></h:outputStylesheet>
	</h:head>
	<h:body>
		<div id="container">	
				<div id="header-capa">					
					<img src="../resources/imagens/logo-bola.png" alt="Bola na Rede" /><br />
					<font class="texto2">
					O seu site para marcar aquela pelada com os amigos!
					</font>
				</div>	
				<div id="mainnav-capa">
					<h:form id="acesso">
						<h:messages styleClass="texto1"/>
						<h:panelGrid columns="2">							
							<h:outputLabel value="Nome" styleClass="texto1"/>							
							<h:inputText id="nome" value="#{novoUsuarioBean.usuarioSelecionado.nome}" required="true"/>
							<h:outputLabel value="Email" styleClass="texto1"/>							
							<h:inputText id="email" value="#{novoUsuarioBean.usuarioSelecionado.email}" required="true" validatorMessage="Email inválido">
								<f:validateRegex
								pattern="^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$" />
							</h:inputText>
							<h:outputLabel value="Senha" styleClass="texto1"/>							
							<h:inputSecret id="senha" value="#{novoUsuarioBean.usuarioSelecionado.senha}" required="true"/>							
							<h:commandButton value="Salvar" action="#{novoUsuarioBean.salvar()}" styleClass="botoes2"/>
							<h:commandButton value="Voltar" action="login" styleClass="botoes2" immediate="true"/>
						</h:panelGrid>
					</h:form>					
		</div>	</div>	
	</h:body>
</html>